package com.topisv.tms.repository.work;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.topisv.tms.entity.work.WarehouseExpressConf;
import com.topisv.tms.entity.work.outScope.ScopeCustomerConfig;

/**
 * 各仓快递发货配置
 * @author dukechen
 *
 */
public abstract interface WarehouseExpressConfDao extends PagingAndSortingRepository<ScopeCustomerConfig, Long>, JpaSpecificationExecutor<ScopeCustomerConfig>
{
	@Query("select t from warehouse_express t where  t.warehouseCode=? order by t.cacode")
	List<WarehouseExpressConf> loadByCompanyCode(String companyCode,String warehouseCode);

}